//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	IFormEntity.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using Smart.Common.Entities;

namespace Smart.Common.Forms
{
	/// <summary>
	/// Form entity (values source)
	/// </summary>
	public interface IFormEntity
	{
		/// <summary>
		/// Return entity identifier
		/// </summary>
		Identifier ID { get; }

		/// <summary>
		/// Return whether this entity is new
		/// </summary>
		bool IsNew { get; }

		/// <summary>
		/// Entity source
		/// </summary>
		object Source { get; set; }

		/// <summary>
		/// Entity content type
		/// </summary>
		string ContentTypeId { get; set; }
	}
}